home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr50 / wbb13.zip / SAMPLE2.BAS < prev    next >
BASIC Source File  |  1993-06-04  |  751b  |  30 lines

  1.  
  2.  
  3. rem
  4. rem Example of Program to print HELLO on screen.
  5. rem
  6. rem Now we have expanded to the hello program to do several more things.
  7. rem First, the prompt is now positioned in the middle of the screen
  8. rem (It looks nicer).
  9. rem
  10. rem Second, we use a windows command to adjust the size of our display
  11. rem window.  The Windows size command allows us to adjust the area of screen
  12. rem displayed while in windows.  This is nice for getting rid of blank
  13. rem space.  The Windows size command is ignored when in DOS mode.
  14. rem
  15.  
  16.  
  17.     rem windows size 30,9,50,11
  18.  
  19.     cls
  20.     locate 10,36
  21.     print "Hello!"
  22.  
  23.     if ostype=1 then
  24.       locate 12,26
  25.       print "Press any key to continue..."
  26.     end if
  27.  
  28. 100 if inkey$="" then goto 100
  29.  
  30.